#include "Renderer/buffer.h"

#include "Renderer/renderer.h"

#include "Platform/OpenGL/openGLBuffer.h"

namespace CC
{

	VertexBuffer *VertexBuffer::Create(uint32_t size)
	{
		return new OpenGLVertexBuffer(size);
	}

	VertexBuffer *VertexBuffer::Create(float *vertices, uint32_t size)
	{
		return new OpenGLVertexBuffer(vertices, size);
	}

	IndexBuffer *IndexBuffer::Create(uint32_t size)
	{
		return new OpenGLIndexBuffer(size);
	}

	IndexBuffer *IndexBuffer::Create(uint32_t *indices, uint32_t size)
	{
		return new OpenGLIndexBuffer(indices, size);
	}

}